﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SES.CMS.BL;
using SES.CMS.DO;

namespace SES.CMS.Module
{
    public partial class ucMnuDanhMuc : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GetDanhMuc();

        }

        public void GetDanhMuc()
        {
            cmsLoaiSanPhamBL objLoaiSanPham = new cmsLoaiSanPhamBL();

            rpt1.DataSource = objLoaiSanPham.SelectLoaiSanPham_ToMenu(1, 10);
            rpt1.DataBind();

            rpt2.DataSource = objLoaiSanPham.SelectLoaiSanPham_ToMenu(11, 20);
            rpt2.DataBind();

            rpt3.DataSource = objLoaiSanPham.SelectLoaiSanPham_ToMenu(21, 30);
            rpt3.DataBind();

            rpt4.DataSource = objLoaiSanPham.SelectLoaiSanPham_ToMenu(31, 40);
            rpt4.DataBind();

            rpt5.DataSource = objLoaiSanPham.SelectLoaiSanPham_ToMenu(41, 50);
            rpt5.DataBind();
            
        }

        protected string FriendlyUrl(string strTitle)
        {
            return Ultility.Change_AV(strTitle);
        }
    }
}